package myschool.myshchool15.mystudent;

import java.util.Scanner;

public class Switch {
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);

        System.out.print("请输入名词：");
        int ranking = input.nextInt();
        //switch
        switch(ranking){
            case 1:
                System.out.println("参加夏令营");
                break;
            case 2:
                System.out.println("奖励笔记本电脑");
                break;
            case 3:
                System.out.println("奖励移动硬盘");
                break;
            default:
                System.out.println("没有任何奖励");
                break;
        }
    }
}
